public class Test2 {
    public static double add(double x,double y,double z){
        return x+y+z;
    }
    public static int add(int x,int y){
        return x+y;
    }
    public static void main(String[] args){
        int  sum1 =add(10,20);
        double sum2=add(1.5,2.5,6.0);
        System.out.println(sum1);
        System.out.println(sum2);
    }
}
